﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using publico;

namespace softsales.pagina.orcamento
{
    public partial class _default1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (publico.PUB_SESSAO.Logado())
            {
                int id_operacao = 0;

                if(Request["id_operacao"]!=null)
                {
                    id_operacao = Convert.ToInt32(Request["id_operacao"].ToString());
                    Response.Redirect(string.Format("orcamento_listar.aspx?id_operacao={0}", id_operacao), false);
                }
                else
                {                             
                    Response.Redirect(string.Format("orcamento_listar.aspx?id_operacao={0}", (int)PUB_ENUM.ORCAMENTO_OPERACAO.SAIDA), false);
            
                }

                
             
                
            }
        }
    }
}